import Vue from 'vue'
import Router from 'vue-router'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import 'font-awesome/scss/font-awesome.scss'
import vueToTop from 'vue-totop'

Vue.use(MintUI)
Vue.use(Router)
Vue.use(vueToTop)

export default new Router({
  mode:'history',
  routes: [
    {
      path: '/',
      name:'home',
      component: () => import('./views/List.vue')
    },
    {
      path: '/list/:type',
      name: 'list',
      component: () => import('./views/List.vue')
    },
    {
      path: '/detail/:id',
      name: 'detail',
      component: () => import('./views/Detail.vue')
    }
  ]
})
